package com.example.scenictourback.repository;

import com.example.scenictourback.entity.Ticket;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TicketRepository extends JpaRepository<Ticket, Integer> {
    
    List<Ticket> findByScenicAreaId(Integer scenicAreaId);
    
    List<Ticket> findByNameContaining(String name);
} 